<%@ Page Language="C#" AutoEventWireup="true" CodeFile="modifypremiumdetails.aspx.cs" Inherits="modifypremiumdetails" MasterPageFile="~/MainMaster.master" Title="Featured Doctor" %>

<%@ MasterType VirtualPath="~/MainMaster.master" %>
<%@ Register Src="../includes/DoctorMenu.ascx" TagName="DoctorMenu" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainTable" runat="server">

     <% if (Session["userID"].ToString() != "")
       { %>
    <div class="heading_inner">
        <div class="heading_topic">
            <uc1:DoctorMenu ID="DoctorMenu1" runat="server" />
        </div>
    </div>
    <%} %>
    <div class="cl"></div>
    <!---/ Left wrapper -->
    <!---/ Left wrapper -->
    <div style="width: 94%; padding: 3%">
        <div style="background-color: #f4f4f4; width: 94%; padding: 3%">
            <table cellpadding="0" cellspacing="0" border="0" style="width: 100%; vertical-align: top">
       <tr>
            <td align="left">
                <asp:Label ID="lbl_drbid" runat="server" CssClass="page-heading" Text="Featured Doctor" Font-Underline="false" Font-Size="20px"></asp:Label>
            </td>
        </tr>
         
        <tr>
            <td align="left">
                <table width="549" border="0" cellpadding="0" cellspacing="0" bgcolor="#f1f1f1">
                    <tr>
                     
                        <td>

                            <table width="100%" border="0" align="center" cellpadding="2" cellspacing="2">
                                <%if (lbl_fail.Visible)
                                  { %><tr>
                         <td colspan="3" align="left" style="height: 20px" class="blue-heading">
                             <center>
                          <asp:Label id="lbl_fail" runat="server" Visible="False" ForeColor="Red"></asp:Label>
                      </center>
                         </td>
                     </tr>
                                <%}%>
                                <!-- 
                      <tr class="normalblack_12">
                          <td align="center" colspan="3">
                          
                          <a href="whatisfeatureddoc.aspx">What is a Featured Doctor?</a>
                          
                          </td>
                      </tr>
                      -->

                                <!-- BIDDING HTML CONTROLS REMOVED FROM HERE -->
                                <asp:TextBox ID="txt_lvl" runat="server" MaxLength="50" Width="80px" Visible="False" CssClass="inp"></asp:TextBox><asp:TextBox ID="txtBid" runat="server" CssClass="inp" Width="50px" Visible="false"></asp:TextBox><tr class="normalblack_12">
                                    <td colspan="3" align="left">
                                        <strong style="color: blue">Edit Premium Features:</strong></td>
                                    <td>
                                </tr>
                                <tr class="normalblack_12">
                                    <td style="width: 146px" valign="top">
                                        <strong>Photo</strong>
                                        <br />
                                        Existing Photo:<br />
                                        <asp:Literal ID="photo" runat="server"></asp:Literal>
                                    </td>
                                    <td valign="top">:</td>
                                    <td align="left" style="width: 355px" valign="top">
                                        <asp:FileUpload ID="fupl_photo" runat="server" Width="300px" /><br />
                                        Max. file size: 500kb
                                    </td>
                                </tr>
                                <tr class="normalblack_12">
                                    <td style="width: 146px" valign="top">
                                        <strong>Personal Doctor Statement</strong></td>
                                    <td valign="top">:</td>
                                    <td align="left" style="width: 355px" valign="top">
                                        <asp:TextBox ID="txt_profdesc" runat="server" TextMode="MultiLine" Width="300px" CssClass="inp"></asp:TextBox><br />
                                        Max. length of text: 1500 characters<br />
                                        <asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="ChkLen"
                                            ControlToValidate="txt_profdesc" ErrorMessage="Text cannot exceed 1500 characters." Display="Dynamic"></asp:CustomValidator><br />
                                    </td>
                                </tr>
                                <tr class="normalblack_12">
                                    <td style="width: 146px" valign="top">
                                        <strong>Website</strong></td>
                                    <td valign="top">:</td>
                                    <td align="left" style="width: 355px" valign="top">
                                        <asp:TextBox ID="txt_web" runat="server" Width="300px" CssClass="inp"></asp:TextBox>
                                        <br />
                                        <asp:RegularExpressionValidator ID="regex_web" runat="server" ControlToValidate="txt_web"
                                            Display="Dynamic" ErrorMessage="Enter URL in correct format (http://www.abc.com)"
                                            ValidationExpression="http(s)?://([a-zA-Z0-9]+)[.{1}]([a-zA-Z0-9]+)[.{1}]([a-zA-Z0-9]+)"></asp:RegularExpressionValidator></td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td valign="top"></td>
                                    <td align="left" style="width: 355px">&nbsp;</td>
                                    <asp:RadioButtonList ID="RadioButtonList1" runat="server"></asp:RadioButtonList>
                                </tr>
                                <tr>
                                    <td colspan="3" align="center">
                                        <asp:ImageButton ID="btn_bid" runat="server" Height="21px" ImageUrl="../images/b-submit-inner.gif"
                                            OnClick="btn_bid_Click" Width="75px" />&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3" align="center" style="height: 19px">
                                        <asp:HiddenField ID="hidphoto" runat="server" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                      
                    </tr>
                </table>
            </td>
        </tr>
    </table>
            </div></div>
    <script>
        function ChkLen(sender, args) {
            //alert(document.getElementById("txt_profdesc"));
            if (document.getElementById("<%=txt_profdesc.ClientID%>").value.length > 1500) {
                      args.IsValid = false;
                      return;
                  }
                  args.IsValid = true;
              }
    </script>
</asp:Content>
